Samina Issa - Fall 2023
2023-11-29
Youth & Adult Literacy Rates Datasets Link
The data is a CSV from Kaggle. This dataset contains data on literacy rates for youth and adults in various regions and countries.
Growing up, many people in my community, neighborhood and family were not able to read and write. So I wanted to see the literacy rate in recent years and picked it for the project
library(dplyr): using for data manipulation
library(tidyverse): using to transform and better present data
library(ggplot2): using for data visualization and plotting charts
library(plotly): using for creating interactive web-based graphs
## Warning: package 'tidyverse' was built under R version 4.3.2
## Rows: 4,955
## Columns: 7
## $ index <dbl> 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, …
## $ Region <chr> "Central and Southern Asia", "Central and Southern Asi…
## $ Country <chr> "Afghanistan", "Afghanistan", "Afghanistan", "Afghanis…
## $ Year <dbl> 2011, 2011, 2011, 2011, 2011, 2011, 2011, 2011, 2011, …
## $ Age <chr> "15+", "15+", "15+", "15-24", "15-24", "15-24", "25-64…
## $ Gender <chr> "female", "male", "total", "female", "male", "total", …
## $ `Literacy rate` <dbl> 0.1761206, 0.4541710, 0.3174112, 0.3211322, 0.6187907,…
## Rows: 202
## Columns: 9
## $ Country <chr> "Afghanistan", "Albania", "Algeria",…
## $ Region <chr> "SA", "ECA", "MENA", "ECA", "SSA", "…
## $ `Sub-region` <chr> NA, "EECA", NA, "WE", "ESA", NA, NA,…
## $ `Least developed countries (LDC)` <chr> "LDC", NA, NA, NA, "LDC", NA, NA, NA…
## $ `Africa sub-regions` <chr> NA, NA, "Northern Africa", NA, "Sout…
## $ `Africa region` <chr> NA, NA, "All", NA, "All", NA, NA, NA…
## $ Total <dbl> 43, 98, 81, NA, NA, NA, NA, 99, NA, …
## $ Male <dbl> 55, 99, 87, NA, NA, NA, NA, 99, NA, …
## $ Female <dbl> 30, 98, 75, NA, NA, NA, NA, 99, NA, …
## # A tibble: 155 × 2
## Country mean_lit_rate
## <chr> <dbl>
## 1 Ukraine 1.00
## 2 Uzbekistan 0.999
## 3 San Marino 0.999
## 4 Latvia 0.999
## 5 Estonia 0.999
## 6 Lithuania 0.998
## 7 Kazakhstan 0.997
## 8 Belarus 0.997
## 9 Russian Federation 0.997
## 10 Cuba 0.996
## # ℹ 145 more rows
## # A tibble: 155 × 2
## Country mean_lit_rate
## <chr> <dbl>
## 1 Chad 0.217
## 2 Guinea 0.259
## 3 Niger 0.278
## 4 Mali 0.308
## 5 South Sudan 0.308
## 6 Sierra Leone 0.333
## 7 Burkina Faso 0.334
## 8 Benin 0.335
## 9 Afghanistan 0.348
## 10 Central African Republic 0.371
## # ℹ 145 more rows
## # A tibble: 202 × 4
## Country Male Female diff
## <chr> <dbl> <dbl> <dbl>
## 1 Malta 93 96 -3
## 2 Mongolia 98 99 -1
## 3 Seychelles 95 96 -1
## 4 Eswatini 88 89 -1
## 5 Uruguay 98 99 -1
## 6 Argentina 99 99 0
## 7 Belarus 100 100 0
## 8 Brazil 93 93 0
## 9 Colombia 95 95 0
## 10 Costa Rica 98 98 0
## # ℹ 192 more rows
## # A tibble: 202 × 4
## Country Male Female diff
## <chr> <dbl> <dbl> <dbl>
## 1 Afghanistan 55 30 25
## 2 Central African Republic 50 26 24
## 3 Benin 54 31 23
## 4 Mali 46 26 20
## 5 Nepal 79 60 19
## 6 Morocco 83 65 18
## 7 Nigeria 71 53 18
## 8 Burkina Faso 50 33 17
## 9 Sierra Leone 52 35 17
## 10 India 82 66 16
## # ℹ 192 more rows
## # A tibble: 7 × 2
## Region mean_lit_rate
## <chr> <dbl>
## 1 Europe and Northern America 0.979
## 2 Oceania 0.912
## 3 Latin America and the Caribbean 0.907
## 4 Eastern and South-Eastern Asia 0.882
## 5 Northern Africa and Western Asia 0.851
## 6 Central and Southern Asia 0.718
## 7 Sub-Saharan Africa 0.616